package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.annotation.Excel;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@TableName("data_exception_detail")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "出入库异常明细表")
public class DataExceptionDetail extends BaseModel<DataExceptionDetail> {

    /**
     * 数据异常主表
     */
    @Excel(name = "数据异常主表")
    @ApiModelProperty(value = "数据异常主表")
    private String dataExceptionId;

    /**
     * 异常类型
     */
    @Excel(name = "数据类型")
    @ApiModelProperty(value = "数据类型")
    private String dataType;

    @Excel(name = "异常类型")
    @ApiModelProperty(value = "异常类型：1货箱缺失，2重量异常")
    private Integer type;

    /**
     * 货箱编码
     */
    @Excel(name = "货箱编码")
    @ApiModelProperty(value = "货箱编码")
    private String boxCode;

    /**
     * 实际采购发货时配送重量
     */
    @Excel(name = "实际采购发货时配送重量")
    @ApiModelProperty(value = "实际采购发货时配送重量")
    private BigDecimal purchaseWeight;

    /**
     * 入库时实际称重重量
     */
    @Excel(name = "入库时实际称重重量")
    @ApiModelProperty(value = "入库时实际称重重量")
    private BigDecimal actWeight;

    /**
     * 重量差异=实际采购发货时配送重量-入库时实际称重重量
     */
    @Excel(name = "重量差异=实际采购发货时配送重量-入库时实际称重重量")
    @ApiModelProperty(value = "重量差异=实际采购发货时配送重量-入库时实际称重重量")
    private BigDecimal subWeight;
}
